package cn.mianxZY.java;

public abstract class Teacher {
    /*上机作业1：开发教员类，其中教员分为Java技术方向教员以及.NET技术方向的教员，
    各自的要求如下：
            1.Java教员
    具有属性：姓名、性别、年龄、教龄、所在中心。
    具有方法：授课（授课的步骤依次是：打开Eclipse、实施理论课授课）、自我介绍。
            2.NET教员
    具有属性：姓名、性别、年龄、教龄、所在中心。
    具有方法：授课（授课的步骤依次是：打开Visual Studio 2017、实施理论课授课）、
    自我介绍。*/
  private   String name;
   private char gender;
   private int age;
   private int teacherAge;
    public  String center;

    public Teacher(String name,char gender,int age,int teacherAge,String center){
        this.name=name;
        this.gender=gender;
        this.age=age;
        this.teacherAge=teacherAge;
        this.center=center;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char getGender() {
        return gender;
    }

    public void setGender(char gender) {
        this.gender = gender;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public int getTeacherAge() {
        return teacherAge;
    }

    public void setTeacherAge(int teacherAge) {
        this.teacherAge = teacherAge;
    }

    public abstract void teaches();

    public void teachShow(){
        System.out.print("姓名："+this.getName());
        System.out.print("性别："+this.getGender());
        System.out.print("年龄："+this.getAge());
        System.out.print("教龄："+this.getTeacherAge());
        System.out.println("所在中心："+this.center);
    }

}
